package com.springboot.auth.authorization.exception;

import com.springboot.cloud.common.core.exception.ErrorType;
import lombok.Getter;

/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 */
@Getter
public enum UserErrorType implements ErrorType {

    USER_NOT_FOUND("030100", "用户未找到！"),
    ROLE_NOT_FOUND("030200", "角色未找到！");
//    Position_NOT_FOUND("030300", "组织未找到！");

    /**
     * 错误类型码
     */
    private String code;
    /**
     * 错误类型描述信息
     */
    private String mesg;

    UserErrorType(String code, String mesg) {
        this.code = code;
        this.mesg = mesg;
    }
}
